package com.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import com.model.Customer;

@Component
public interface CustomerDao {

    /**
     * 查询用户
     * 
     * @param parMap
     * @return
     */
    public List<Customer> get(Map<String, Object> parMap);
    public List<Customer> getFather(Map<String, Object> parMap);

    /**
     * 更新用户
     * 
     * @param sysUser
     */
    public void edit(Customer customer);

    /**
     * 根据id查询用户
     * @param id
     * @return
     */
    public Customer getById(Long id);

    public List<Customer> search(@Param("name") String name);
    
    /**
     * 今日注册量
     * 
     * @return
     */
    public int getTodayCount();
}
